package cn.cdutetc.library.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
@Schema(description = "费用计算数据传输对象")
public class FeeCalculateDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID")
    private Integer userId;

    @NotBlank(message = "费用原因不能为空")
    @Schema(description = "费用原因")
    private String reason;

    @NotNull(message = "费用金额不能为空")
    @Positive(message = "费用金额必须大于0")
    @Schema(description = "费用金额")
    private BigDecimal amount;

    @Schema(description = "关联记录ID")
    private Integer recordId;
}
